Cerner Workflow System API - Implementation Template
Developer guide
Cerner Dev Guide
The Worfklow application uses the following DataWeave modules to be used in Appointment(Search,Get,Create,Cancel) and Slot(Get and Search) for Cerner
Module | Description |
---|---|
createCancelRequest | Creates Appointment Cancel request using inputRequest(payload) |
createRequestFilterParticipants | Removes participants based on the allowed participants |
replaceDatePrefix | Replace date prefix le with lt as Cerner accepts only lt |
replaceResponseUrls | |
updateDateParams | |
validatePostRequest | Function uses property allowedAppointmentParticipants to identify allowed actors in participant for Appointment Create/Cancel |
WorkflowFHIRTools | WorkflowFHIRTools DataWeave library contains functions used for Slot Search and Appointment Search, Create and Cancel in Cerner |
createCancelRequest
Creates Appointment Cancel request using inputRequest(payload)
Source:
.src/main/resources/dw/Appointment/createCancelRequest.dwl
createRequestFilterParticipants
Removes participants based on the allowed participants
Source:
.src/main/resources/dw/Appointment/createRequestFilterParticipants.dwl
replaceDatePrefix
Replace date prefix le with lt as Cerner accepts only lt
Source:
.src/main/resources/dw/Appointment/replaceDatePrefix.dwl
replaceResponseUrls
Source:
.src/main/resources/dw/Appointment/replaceResponseUrls.dwl
Functions
fun rewriteUrl (urlValue)
Replace Cerner Url with API baseUrl
updateDateParams
Source:
.src/main/resources/dw/Appointment/updateDateParams.dwl
validatePostRequest
Function uses property allowedAppointmentParticipants to identify allowed actors
in participant for Appointment Create/Cancel
Source:
.src/main/resources/dw/Appointment/validatePostRequest.dwl
WorkflowFHIRTools
WorkflowFHIRTools DataWeave library contains functions used for Slot Search and Appointment Search, Create and Cancel
in Cerner
Source:
.src/main/resources/dw/Appointment/WorkflowFHIRTools.dwl
Functions
fun createCancelationRequest (cancelObj)
Generate Appointment Cancellation Request
param
cancelObj
cancel payload sent in post
return returns Appointment Cancel with code body
fun validateAppointmentPost (inRequest, allowedAppointmentParticipants)
Validate the input body for Appointment POST Allowed Participants are defined in allowedAppointmentParticipants Returns Boolean True or False. True implies presence of unallowed participant actors